package cn.itcast.controller;

import cn.itcast.core.BaseServlet;
import cn.itcast.core.ResponseBody;
import cn.itcast.service.ProvinceService;
import cn.itcast.service.impl.ProvinceServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/ProvinceController/*")
public class ProvinceController extends BaseServlet {
    private ProvinceService provinceService= new ProvinceServiceImpl();

    @ResponseBody
    public Object findAll(HttpServletRequest request, HttpServletResponse response)throws Exception{
     return provinceService.findAll();
    }
}
